﻿using System;
using System.Collections.Generic;
using System.Text;
using IBatisNet.DataAccess.Interfaces;
using IBatisNet.DataAccess.DaoSessionHandlers;
using IBatisNet.DataAccess;
using IBatisNet.DataMapper;
using System.Collections;
using IBatisNet.Common.Pagination;
using IBatisNet.Common.Exceptions;

namespace Ecreate.Data.MapperDao
{
    public class BaseDao:IDao
    {
        public const int PAGE_SIZE = 4;
        public SqlMapper GetLocalSqlMap()
        {
            DaoManager daoManager = (DaoManager)DaoManager.GetInstance(this);
            SqlMapDaoSession sqlMapDaoSession = (SqlMapDaoSession)daoManager.LocalDaoSession;
            return (SqlMapper)sqlMapDaoSession.SqlMap;
        }
    }
}
